package com.liushuai.eas.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.liushuai.eas.mapper.ClassroomMapper;
import com.liushuai.eas.pojo.Classroom;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

@Service
public class ClassroomImp implements ClassroomMapper {

    @Resource
    private ClassroomMapper classroomMapper;

    @Override
    public int insert(Classroom entity) {
        return classroomMapper.insert(entity);
    }

    @Override
    public int deleteById(Serializable id) {
        return classroomMapper.deleteById(id);
    }

    @Override
    public int deleteById(Classroom entity) {
        return classroomMapper.deleteById(entity);
    }

    @Override
    public int deleteByMap(Map<String, Object> columnMap) {
        return 0;
    }

    @Override
    public int delete(Wrapper<Classroom> queryWrapper) {
        return classroomMapper.delete(queryWrapper);
    }

    @Override
    public int deleteBatchIds(Collection<?> idList) {
        return 0;
    }

    @Override
    public int updateById(Classroom entity) {
        return classroomMapper.updateById(entity);
    }

    @Override
    public int update(Classroom entity, Wrapper<Classroom> updateWrapper) {
        return 0;
    }

    @Override
    public Classroom selectById(Serializable id) {
        return classroomMapper.selectById(id);
    }

    @Override
    public List<Classroom> selectBatchIds(Collection<? extends Serializable> idList) {
        return null;
    }

    @Override
    public List<Classroom> selectByMap(Map<String, Object> columnMap) {
        return null;
    }

    @Override
    public Classroom selectOne(Wrapper<Classroom> queryWrapper) {
        return classroomMapper.selectOne(queryWrapper);
    }

    @Override
    public Long selectCount(Wrapper<Classroom> queryWrapper) {
        return null;
    }

    @Override
    public List<Classroom> selectList(Wrapper<Classroom> queryWrapper) {
        return classroomMapper.selectList(queryWrapper);
    }

    @Override
    public List<Map<String, Object>> selectMaps(Wrapper<Classroom> queryWrapper) {
        return null;
    }

    @Override
    public List<Object> selectObjs(Wrapper<Classroom> queryWrapper) {
        return null;
    }

    @Override
    public <P extends IPage<Classroom>> P selectPage(P page, Wrapper<Classroom> queryWrapper) {
        return classroomMapper.selectPage(page,queryWrapper);
    }

    @Override
    public <P extends IPage<Map<String, Object>>> P selectMapsPage(P page, Wrapper<Classroom> queryWrapper) {
        return null;
    }

    @Override
    public List<Classroom> queryClassroomList(int pageBegin, int pageEnd) {
        return classroomMapper.queryClassroomList(pageBegin,pageEnd);
    }

    @Override
    public List<Classroom> queryClassroomListBySearch(int pageBegin, int pageEnd, String search) {
        return classroomMapper.queryClassroomListBySearch(pageBegin,pageEnd,search);
    }

    @Override
    public int queryTotal() {
        return classroomMapper.queryTotal();
    }

    @Override
    public int queryTotalBySearch(String search) {
        return classroomMapper.queryTotalBySearch(search);
    }

    @Override
    public Classroom selectOne(int id) {
        return classroomMapper.selectOne(id);
    }
}
